Followup r93366: fix Opera bugs in textSelection. All tests pass in Opera now. Before...
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 28 Jul 2011 06:40:31 +0000 (06:40 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 28 Jul 2011 06:40:31 +0000 (06:40 +0000)
commitbc72a007253338342fa9a6497e8a3e1606b4fac5
tree47603ae52b2eb0cb07f976a703567360600eafc3
parentd2fc621d5fc95064be9b8ee9825255f9095dfb39
Followup r93366: fix Opera bugs in textSelection. All tests pass in Opera now. Before, there were five failures
* replace \r\n with \n in the obtained output from getSelection. This fixes one failure
* In continuation of r93366, which updated post for added newlines in insertText, do the same for pre and also do this in the non-IE branch. This fixes one failure
* Look for \r as well as \n where line endings are concerned in the non-IE branch, just like in the IE branch. This fixes one failure
* Have the test case generator remap selection positions for Opera to account for the fact that a newline is double-counted. This fixes the remaining two failures
resources/jquery/jquery.textSelection.js
tests/qunit/suites/resources/jquery/jquery.textSelection.js